package ms.aurora.mvp;

import javax.swing.JDialog;

/**
 * 
 * @author rvbiljouw
 * 
 * @param <V>
 */
public abstract class AbstractPresenter<V extends AbstractView> {
	private final V view;

	public AbstractPresenter(V view) {
		this.view = view;
	}

	public V getView() {
		return view;
	}

	public void popDialog() {
		JDialog dialog = new JDialog();
		dialog.add(view.asComponent());
		dialog.pack();
		dialog.setVisible(true);
	}
}
